package com.xiaoxiong.mami.service;

import com.xiaoxiong.mami.dao.daomain.OrderGoods;
import com.xiaoxiong.mami.dao.mapperImpl.OrderGoodsMapperImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/8/12.
 */
@Service
public class OrderGoodsService {

    @Autowired
    OrderGoodsMapperImpl orderGoodsMapperImpl;

    public int insertOrderGoods(List<OrderGoods> list) {
        return orderGoodsMapperImpl.insertOrderGoods(list);
    }

    public List<OrderGoods> getGoodsByOrderIds(String orderIds) {
        return orderGoodsMapperImpl.getGoodsByOrderIds(orderIds);
    }

}
